package com.tbvtc.agriculturalcreditchainserver2025.pojo.Iot;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
@Data
// 内层 ResultObj 对象
public class ResultObj {
    private String Unit;
    private String ApiTag;
    private Integer Groups;
    private Integer Protocol;
    @JsonProperty("Name")
    private String Name;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date CreateDate;
    private Integer TransType;
    private Integer DataType;
    private String TypeAttrs;
    private Long DeviceID;
    @JsonProperty("SensorType")
    private String SensorType;
    private Object GroupID;
    private Object Coordinate;
    @JsonProperty("Value")
    private String Value;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date RecordTime;

    // 省略 getter/setter
}